package doxygenxml.compound;
 
/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/
	
// <summary>
// This class represents the ComplexType paramType
// </summary>
public class ParamType extends com.liquid_technologies.ltxmllib18.XmlGeneratedClass {
	private static final long serialVersionUID = 13L;

	// <summary>
	// 	Constructor for ParamType
	// </summary>
	// <remarks>
	// The class is created with all the mandatory fields populated with the
	// default data. 
	// All Collection object are created.
	// However any 1-n relationships (these are represented as collections) are
	// empty. To comply with the schema these must be populated before the xml
	// obtained from ToXml is valid against the schema CENSORED
	// </remarks>
	public ParamType() {
		setElementName("paramType");
		init();
	}
	public ParamType(String elementName) {
		setElementName(elementName);
		init();
	}		

	// <summary>
	// 	Initializes the class
	// </summary>
	// <remarks>
	// This creates all the mandatory fields (populated with the default data) 
	// All Collection object are created.
	// However any 1-n relationships (these are represented as collections) are
	// empty. To comply with the schema these must be populated before the xml
	// obtained from ToXml is valid against the schema CENSORED.
	// </remarks>
	@Override
	protected void init() {
		try {
			doxygenxml.compound.Registration.iRegistrationIndicator = 0; // causes registration to take place
			_attributes = null;
			_type = null;
			_declname = null;
			_defname = null;
			_array = null;
			_defval = null;
			_typeconstraint = null;
			_briefdescription = null;

			// ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			// Add Additional initialization code here...
			// ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

			getClassAttributeInfo();
			getClassElementInfo();
		} catch (Exception ex) {
			// should never happen
			ex.printStackTrace();
			throw new InternalError();
		}
	}



	// <summary>
	// Allows the class to be copied
	// </summary>
	// <remarks>
	// Performs a 'deep copy' of all the data in the class (and its children)
	// </remarks>
	@Override
	public Object clone() throws CloneNotSupportedException {
		try {
			doxygenxml.compound.ParamType newObject = (doxygenxml.compound.ParamType)super.clone();

			// clone, creates a bitwise copy of the class, so all the collections are the
			// same as the parents. Init will re-create our own collections, and classes, 
			// preventing objects being shared between the new an original objects
			newObject.init();
			newObject._attributes = null;
			if (_attributes != null)
				newObject._attributes = (com.liquid_technologies.ltxmllib18.Element)_attributes.clone();
			newObject._type = null;
			if (_type != null)
				newObject._type = (doxygenxml.compound.LinkedTextType)_type.clone();
			newObject._declname = null;
			if (_declname != null)
				newObject._declname = (com.liquid_technologies.ltxmllib18.Element)_declname.clone();
			newObject._defname = null;
			if (_defname != null)
				newObject._defname = (com.liquid_technologies.ltxmllib18.Element)_defname.clone();
			newObject._array = null;
			if (_array != null)
				newObject._array = (com.liquid_technologies.ltxmllib18.Element)_array.clone();
			newObject._defval = null;
			if (_defval != null)
				newObject._defval = (doxygenxml.compound.LinkedTextType)_defval.clone();
			newObject._typeconstraint = null;
			if (_typeconstraint != null)
				newObject._typeconstraint = (doxygenxml.compound.LinkedTextType)_typeconstraint.clone();
			newObject._briefdescription = null;
			if (_briefdescription != null)
				newObject._briefdescription = (doxygenxml.compound.DescriptionType)_briefdescription.clone();
	
// ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional clone code here...

// ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

			return newObject;
		} catch (CloneNotSupportedException e) {
			// should never happen
			e.printStackTrace();
			throw new InternalError();
		}
	}

	@Override
	public String getTargetNamespace() {
		return "";
	}

	// <summary>
	// Represents an optional untyped element in the XML document
	// </summary>
	// <remarks>
	// It is optional, initially it is null.

	// </remarks>
	public com.liquid_technologies.ltxmllib18.Element getAttributes() {
		return _attributes;  
	}
	public void setAttributes(com.liquid_technologies.ltxmllib18.Element value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != null)
			testNamespace(value.getNamespace(), "##any", "");
		_attributes = value; 
	}
	protected com.liquid_technologies.ltxmllib18.Element _attributes;

	// <summary>
	// Represents an optional Element in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Element in the XML.
	// It is optional, initially it is null.

	// </remarks>
	public doxygenxml.compound.LinkedTextType getType() {
		return _type;  
	}
	public void setType(doxygenxml.compound.LinkedTextType value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value == null)
			_type = null;
		else {
			setElementName(value.getBase(), "type");
			_type = value; 
		}
	}
	protected doxygenxml.compound.LinkedTextType _type;

	// <summary>
	// Represents an optional untyped element in the XML document
	// </summary>
	// <remarks>
	// It is optional, initially it is null.

	// </remarks>
	public com.liquid_technologies.ltxmllib18.Element getDeclname() {
		return _declname;  
	}
	public void setDeclname(com.liquid_technologies.ltxmllib18.Element value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != null)
			testNamespace(value.getNamespace(), "##any", "");
		_declname = value; 
	}
	protected com.liquid_technologies.ltxmllib18.Element _declname;

	// <summary>
	// Represents an optional untyped element in the XML document
	// </summary>
	// <remarks>
	// It is optional, initially it is null.

	// </remarks>
	public com.liquid_technologies.ltxmllib18.Element getDefname() {
		return _defname;  
	}
	public void setDefname(com.liquid_technologies.ltxmllib18.Element value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != null)
			testNamespace(value.getNamespace(), "##any", "");
		_defname = value; 
	}
	protected com.liquid_technologies.ltxmllib18.Element _defname;

	// <summary>
	// Represents an optional untyped element in the XML document
	// </summary>
	// <remarks>
	// It is optional, initially it is null.

	// </remarks>
	public com.liquid_technologies.ltxmllib18.Element getArray() {
		return _array;  
	}
	public void setArray(com.liquid_technologies.ltxmllib18.Element value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != null)
			testNamespace(value.getNamespace(), "##any", "");
		_array = value; 
	}
	protected com.liquid_technologies.ltxmllib18.Element _array;

	// <summary>
	// Represents an optional Element in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Element in the XML.
	// It is optional, initially it is null.

	// </remarks>
	public doxygenxml.compound.LinkedTextType getDefval() {
		return _defval;  
	}
	public void setDefval(doxygenxml.compound.LinkedTextType value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value == null)
			_defval = null;
		else {
			setElementName(value.getBase(), "defval");
			_defval = value; 
		}
	}
	protected doxygenxml.compound.LinkedTextType _defval;

	// <summary>
	// Represents an optional Element in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Element in the XML.
	// It is optional, initially it is null.

	// </remarks>
	public doxygenxml.compound.LinkedTextType getTypeconstraint() {
		return _typeconstraint;  
	}
	public void setTypeconstraint(doxygenxml.compound.LinkedTextType value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value == null)
			_typeconstraint = null;
		else {
			setElementName(value.getBase(), "typeconstraint");
			_typeconstraint = value; 
		}
	}
	protected doxygenxml.compound.LinkedTextType _typeconstraint;

	// <summary>
	// Represents an optional Element in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Element in the XML.
	// It is optional, initially it is null.

	// </remarks>
	public doxygenxml.compound.DescriptionType getBriefdescription() {
		return _briefdescription;  
	}
	public void setBriefdescription(doxygenxml.compound.DescriptionType value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value == null)
			_briefdescription = null;
		else {
			setElementName(value.getBase(), "briefdescription");
			_briefdescription = value; 
		}
	}
	protected doxygenxml.compound.DescriptionType _briefdescription;

	@Override
	public String getNamespace() {
		return "";
	}	

	@Override
	public com.liquid_technologies.ltxmllib18.XmlObjectBase getBase() {
		return this;
	}
	protected void onEvent(com.liquid_technologies.ltxmllib18.XmlObjectBase msgSource, int msgType, Object data) {
		if (msgType == CollectionChangeEvent) {
		}
	}

	private static com.liquid_technologies.ltxmllib18.ParentElementInfo __parentElementInfo = null;
	private static com.liquid_technologies.ltxmllib18.ElementInfo[] __elementInfo = null;
	private static com.liquid_technologies.ltxmllib18.AttributeInfo[] __attributeInfo = null;
		
	protected com.liquid_technologies.ltxmllib18.ParentElementInfo getClassInfo() throws Exception {
		if (__parentElementInfo == null) {
			__parentElementInfo = new com.liquid_technologies.ltxmllib18.ParentElementInfo(	
																	com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementGroupType.SEQUENCE,
																	com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, "paramType", "", true, false,
																	null, null, com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_NONE, null, false);
		}
		return __parentElementInfo;
	}

	protected com.liquid_technologies.ltxmllib18.ElementInfo[] getClassElementInfo() throws Exception {
		if (__elementInfo == null) {
			__elementInfo = new com.liquid_technologies.ltxmllib18.ElementInfo[] {
				 new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqUntpdOpt("attributes", "", findGetterMethod("doxygenxml.compound.ParamType", "getAttributes"), findSetterMethod("doxygenxml.compound.ParamType", "setAttributes", "com.liquid_technologies.ltxmllib18.Element"), "##any", "")
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqClsOpt("type", "", findGetterMethod("doxygenxml.compound.ParamType", "getType"), findSetterMethod("doxygenxml.compound.ParamType", "setType", "doxygenxml.compound.LinkedTextType"), com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, doxygenxml.compound.LinkedTextType.class)
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqUntpdOpt("declname", "", findGetterMethod("doxygenxml.compound.ParamType", "getDeclname"), findSetterMethod("doxygenxml.compound.ParamType", "setDeclname", "com.liquid_technologies.ltxmllib18.Element"), "##any", "")
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqUntpdOpt("defname", "", findGetterMethod("doxygenxml.compound.ParamType", "getDefname"), findSetterMethod("doxygenxml.compound.ParamType", "setDefname", "com.liquid_technologies.ltxmllib18.Element"), "##any", "")
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqUntpdOpt("array", "", findGetterMethod("doxygenxml.compound.ParamType", "getArray"), findSetterMethod("doxygenxml.compound.ParamType", "setArray", "com.liquid_technologies.ltxmllib18.Element"), "##any", "")
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqClsOpt("defval", "", findGetterMethod("doxygenxml.compound.ParamType", "getDefval"), findSetterMethod("doxygenxml.compound.ParamType", "setDefval", "doxygenxml.compound.LinkedTextType"), com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, doxygenxml.compound.LinkedTextType.class)
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqClsOpt("typeconstraint", "", findGetterMethod("doxygenxml.compound.ParamType", "getTypeconstraint"), findSetterMethod("doxygenxml.compound.ParamType", "setTypeconstraint", "doxygenxml.compound.LinkedTextType"), com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, doxygenxml.compound.LinkedTextType.class)
				,new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqClsOpt("briefdescription", "", findGetterMethod("doxygenxml.compound.ParamType", "getBriefdescription"), findSetterMethod("doxygenxml.compound.ParamType", "setBriefdescription", "doxygenxml.compound.DescriptionType"), com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, doxygenxml.compound.DescriptionType.class)
			};
		}
		return __elementInfo;
	}

	protected com.liquid_technologies.ltxmllib18.AttributeInfo[] getClassAttributeInfo() throws Exception {
		if (__attributeInfo==null) {
			__attributeInfo = new com.liquid_technologies.ltxmllib18.AttributeInfo[] {
			};
		}
		return __attributeInfo;
	}

// ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional Methods and members here...

// ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
}


